﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RepPendDesp.aspx.cs" Inherits="DECOR.WebApp.RepPendDesp" Title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMainMenu" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphTopMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphTopContent" runat="server">
</asp:Content>


<asp:Content ID="Content6" ContentPlaceHolderID="cphMain" runat="server">
    <asp:UpdatePanel ID="upMain" runat="server">
        <ContentTemplate>
            <div style="height:10px"></div>
            <table cellpadding="2" cellspacing="0" style="padding-left:10px; padding-right:100px;" class="tbl-detalle">
                <tr>
                    <td style="width: 150px;">Número de Pedido</td>
                    <td style="width: 350px"><asp:TextBox ID="txtNumDoc" runat="server" Width="100px" MaxLength="10"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" /></td>
                </tr>
                <tr>
                    <td>Fecha de Despacho</td>
                    <td style="vertical-align:middle;">
                        <asp:TextBox ID="txtFechaInicio" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFechaInicio"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        a
                        <asp:TextBox ID="txtFechaFin" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFechaFin"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        &nbsp;&nbsp;    
                        <asp:ImageButton ID="ibtnBuscar" runat="server" ImageAlign="Middle" ImageUrl="~/img/find.png" OnClick="ibtnBuscar_Click" />
                    </td>
                </tr>
                <tr>
                    <td>Cod. Asesor</td>
                    <td>
                        <asp:TextBox ID="txtCodVendedor" runat="server" Width="60" MaxLength="8" />
                        <asp:Label ID="lblTexto" runat="server" Font-Italic="true" Text="Use * para visualizar todos los asesores" />
                        <cc1:FilteredTextBoxExtender ID="fteCodVendedor" runat="server" TargetControlID="txtCodVendedor"
                                                FilterType="Numbers,Custom" ValidChars="*" />
                    </td>
                </tr>
                <tr>
                    <td>Org. de Ventas</td>
                    <td>
                        <asp:DropDownList ID="cmbOrgVtas" runat="server" Width="200" />
                    </td>
                </tr>
                <tr>
                    <td>Canal Dist.</td>
                    <td>
                        <asp:DropDownList ID="cmbCanal" runat="server" Width="200" />
                    </td>
                </tr>
                <tr>
                    <td>Oficina</td>
                    <td>
                        <asp:DropDownList ID="cmbOficina" runat="server" Width="200" />
                    </td>
                </tr>
            </table>
            
            <div style="height:10px"></div>
            
            <cc2:CoolGridView ID="cgvPendDesp" runat="server" AutoGenerateColumns="false" CssClass="tbl-detalle"
                        Width="978px" OnRowCommand="cgvPendDesp_RowCommand" GridLines="None" ShowHeader="true"
                        Height="350px">
                <Columns>
                    <asp:ButtonField CommandName="Editar" ButtonType="Image" ImageUrl="~/img/edit.png" ShowHeader="true" 
                                 ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top" ItemStyle-Width="30px"
                                 HeaderStyle-Width="30px" />
                    <asp:ButtonField CommandName="Flujo" ButtonType="Image" ImageUrl="~/img/flujo.png" ShowHeader="true" 
                                ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top" ItemStyle-Width="30px" 
                                HeaderStyle-Width="30px" />
                    
                    
                    <asp:BoundField DataField="NumPedido" HeaderText="Pedido" />
                    <asp:BoundField DataField="CodCliente" HeaderText="Cliente" />
                    <asp:BoundField DataField="NomCliente" HeaderText="Denominación" />
                    <asp:BoundField DataField="RucCliente" HeaderText="NIF" />
                    <asp:BoundField DataField="FecPedidoStr" HeaderText="Fecha doc." />

                    <asp:BoundField DataField="Posnr" HeaderText="Pos." />
                    <asp:BoundField DataField="CodMaterial" HeaderText="Material" />
                    <asp:BoundField DataField="NomMaterial" HeaderText="Denominación" />
                    <asp:BoundField DataField="CantPed" HeaderText="Cant. Ped." DataFormatString="{0:0,0.00}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField DataField="CantConf" HeaderText="Cant. Conf." DataFormatString="{0:0,0.00}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField DataField="CantPend" HeaderText="Cant. Pend." DataFormatString="{0:0,0.00}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField DataField="FecRepartoStr" HeaderText="F. Reparto" ItemStyle-HorizontalAlign="Center" />
                    
                </Columns>
                <AlternatingRowStyle BackColor="Beige" />
                <HeaderStyle BackColor="Silver" Font-Size="12px" Height="20px" />
            </cc2:CoolGridView>
                

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>


<asp:Content ID="Content7" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
